import request from '@/utils/request.js'

const api_name = '/portal'

//课程详情讲师信息
export function getTeacherByCourseId (id) {
  return request({
    url: `${api_name}/teacher/course/${id}`,
    method: 'get'
  })
}

//课程详情
export function getCourseDetailById (id) {
  return request({
    url: `${api_name}/course/detail/${id}`,
    method: 'get'
  })
}

//课程详情推荐课程
export function getRecommendCourseById (id) {
  return request({
    url: `${api_name}/course/recommend/${id}`,
    method: 'get'
  })
}

//课程描述
export function getCourseDescriptionById (id) {
  return request({
    url: `${api_name}/description/${id}`,
    method: 'get'
  })
}
